package com.twu.biblioteca;

public class Book implements RentalItem {
    String bookName;
    String author;
    int year;
    int bookId;

    Book(String bookName, String author, int year) {

        this.bookName = bookName;
        this.author = author;
        this.year = year;
    }
    public String getDescription() {
        StringBuilder bookDescription = new StringBuilder();
        bookDescription.append(bookId).append("\t\t");
        bookDescription.append(bookName).append("\t\t");
        bookDescription.append(author).append("\t\t");
        bookDescription.append(year).append("\n");
        return bookDescription.toString();
    }

    public int getID() {
        return bookId;
    }

    public void setID(int newID) {
        bookId = newID;
    }

    public String getName() {
        return bookName;
    }
}